<?php
//如果用户已经登录系统
$user_is_login = !empty( $subject_user_info ) ? TRUE : FALSE;
?>

<div id="user_settings_nav_container">
<div id="user_settings_nav">
<ul class="nav_list">

<?php
if( !$user_is_login ){
?>
<li>
<a href="/oauth2/">使用dazery账号登录</a>
</li>
<?php
}
?>

<?php 
if( $user_is_login ){
?>
<li class="left user_nick">
	 <!--当前登录的用户昵称-->
	 <span id="subject_user_nick" href="javascript:void(0);"><?php echo $subject_user_info['user_nick']?></span>
</li>

<li class="right">
	 <a href="/auth/do_logout">退出</a>
</li>

<li><a href="/settings">账号设置</a></li>
<li><a href="/deal/orders">购买记录</a></li>
<!--li><a href="/settings/app">应用设置</a></li-->

<?php
}
?>

</ul>
</div>
</div>
